SpiffyToolbar is a simple way to add toolbars to any application made with REALbasic. To use SpiffyToolbar in your application, follow these steps:
1. Open your project file with REALbasic.
2. Drag the SpiffyToolbar and STbtn classes from the SpiffyToolbar folder into the window for your project. Two new items should be added to the list.
3. Create a canvas, select it, and select SpiffyToolbar from the menu next to the Super property in the properties window.
4. Set the PictureUp, PictureDown, PictureDisabled, and PictureHover properties for the canvas.
5. Add buttons using the NewButton method.
SpiffyToolbar Methods, Events, and Properties
Methods:
NewButton(Left as Integer, Top as Integer, Width as Integer, Height as Integer, Enabled as Boolean) as STbtn
Creates a new button using the coordinates passed, relative to the left and top of the canvas.
Events:
ButtonDown(ButtonIndex as Integer)
ButtonUp(ButtonIndex as Integer)
ButtonEnter(ButtonIndex as Integer)
ButtonExit(ButtonIndex as Integer)
Fired when the mouse is clicked on a button, released, enters the regions of a button, or exits them, respectively.
Properties:
Button() as STbtn
The 1-based array of buttons for the toolbar.
PictureUp as Picture
PictureDown as Picture
PictureDisabled as Picture
PictureHover as Picture
The four pictures to be drawn. PictureUp is drawn in the back, and the button regions for PictureDown, PictureDisabled, and PictureHover are drawn as needed.
SpiffyToolbar Version History
1.1
ButtonUp no longer fires when the mouse is released outside of the button
Minor asthetic improvements and bug fixes
1.0
Initial release
SpiffyToolbar Legal Info
SpiffyToolbar is free to use and distribute. You may use it in any project that you make. If you distribute a program for profit which uses SpiffyToolbar, let me know and we can work out a deal. If you distribute a program at all which uses SpiffyToolbar, put my name in the about box and give me some credit.